
#include <stdio.h>
#include <string.h>

void reverse(char *arr){
    char *left = arr;
    char *right = arr + strlen(arr) - 1;
    while (left<right) {
        char temp = *left;
        *left = *right;
        *right = temp;
        left++;
        right--;
        
    }
}

int main(){
    char str[10];
    scanf("%s",str);
    reverse(str);
    printf("%s",str);
    return 0;
}
